<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title></title>
    <link rel="stylesheet" href="/css_system/common.css"/>
    <link rel="stylesheet" href="/css_system/main.css"/>
    <link href="/js_system/jQueryUI/jquery-ui.css" rel="stylesheet">
    <!-- 编辑器 -->
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
    <!-- 对话框 -->
    <link rel="stylesheet" href="/js_system/easydialog/easydialog.css"/>
    <script type="text/javascript" src="/js_system/easydialog/easydialog.js"></script>
    <script type="text/javascript" src="/js_system/cueeasy.js"></script>
    <script type="text/javascript" src="/js_system/jquery.min.js"></script>

    <!-- 上传图片 -->
    {{--<script type="text/javascript" src="/uploadify/jquery.uploadify.js"></script>--}}
    {{--<link rel="stylesheet" type="text/css" href="/uploadify/uploadify.css">--}}
    <script type="text/javascript" src="/js_system/audioday.js"></script>

</head>
<body>
<div class="container">
    <div class="location clearfix">
        <div class="here_area fl"><strong>当前位置：</strong>每日一言&nbsp;&nbsp;&raquo;&nbsp;&nbsp;添加信息</div>
        <div class="here_btn fr">
            <a href="javascript:history.back()" class="btn btn_back">返回</a>
            <a href="/admin_system/audioDay/indexAdd" class="btn btn_add">添加</a>
            <a href="javascript:;" onclick="location.replace(location.href);" class="btn btn_refresh">刷新</a>
        </div>
    </div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">基本信息</a></li>
        </ul>
        <form action="/admin_system/audioDay/indexAdd" method="post">
            <div id="tabs-1">
                @include('common.errors')
                <table class="dataTable">
                    <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                    <input type="hidden" name="audioId" value="{{$audio->AudioID}}">
                    <tbody>
                        <tr>
                            <td class="ltd">标题</td>
                            <td class="rtd">
                                <input id="txtAudioTitle" class="input-text" type="text" name="txtAudioTitle" value="{{$audio->AudioTitle}}"/>
                                <span class="text-red pl10">*必填</span>
                            </td>
                        </tr>

                        <tr>
                            <td class="ltd">发布日期</td>
                            <td class="rtd">
                                <input id="PublishDate" class="input-text" type="date" name="PublishDate" value="{{$audio->PublishDate}}"/>
                                <span class="text-red pl10">*必填</span>
                            </td>
                        </tr>

                        <tr>
                            <td class="ltd">音频时长</td>
                            <td class="rtd">
                                <input id="time_length" class="input-text" name="time_length" required placeholder="以秒为单位" value="{{$audio->time_length}}"/>
                                <span class="text-red pl10">*必填</span>
                            </td>
                        </tr>

                        <tr>
                            <td class="ltd">音频URL</td>
                            <td class="rtd">
                                <textarea style="width: 500px;" class="textarea" id="txtAudioUrl" name="txtAudioUrl">{{$audio->FilePath1}}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="ltd">显示 / 隐藏</td>
                            <td class="rtd">
                               <span class="Radio">
                                   <input id="RadIsShow1" type="radio" value="1" @if($audio->IsShow == 1) checked @endif name="RadIsShow"/>
                                   <label for="RadIsShow1">显示</label>
                                   <input id="RadIsShow0" type="radio" value="0" name="RadIsShow" @if($audio->IsShow == 0) checked @endif />
                                   <label for="RadIsShow0">隐藏</label>
                               </span>
                            </td>
                        </tr>
                    </tbody>

                </table>
            </div>
            <div class="contBtn">
                <table class="dataTable">
                    <tfoot>
                    <tr>
                        <td class="ltd"></td>
                        <td class="rtd">
                            <input id="btnAddFrom" onclick="return CheckindexFrom();" type="submit" class="btn btn_save"
                                   name="btnFrom" value="保存">
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </form>
    </div>
</div>
<script src="/js_system/jQueryUI/jquery-ui.js"></script>
<script src="/js_system/jqueryui.js"></script>
</body>
</html>